function toast(title, icon='none', duration = 3000) {
	uni.showToast({
		title,
		icon,
		duration
	})
}

toast.err = function(title, duration = 3000){
	uni.showToast({
		title,
		icon:'error',
		duration
	})
}

export default toast